package com.springboot.blog.service.impl;

import com.springboot.blog.beans.RoleName;
import com.springboot.blog.dao.RoleDao;
import com.springboot.blog.service.RolesService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class RolesServiceImpl implements RolesService {

    @Resource
    private RoleDao roleDao;

    @Override
    public List<RoleName> selectAll() {
        return roleDao.findAllRole();
    }

    @Override
    public int addAllRole(List rps) {
        return roleDao.addAllRole(rps);
    }
}
